/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ImportDataFromPhone;


/**
 *
 * @author o.rybyanskyy
 */
public class CategorizedRecord implements Record{
    
    public static String header = "Name,Value,Date,Category";
    
    private String name;
    private String value;
    private String date;
    private String category;
    
    CategorizedRecord(ProcessedRecord p, String cat){
        name = p.getName();
        value = p.getValue();
        date = p.getDate();
        category = cat;
    }
    
    protected CategorizedRecord(){
        //dummy constructor to access header
    }
    
    public String getCSVString(){
        return name + "," + value + "," + date + "," + category;
    }
    
    public String getHeader(){
        return header;
    }
    
    public static void main(String[] a){
        CategorizedRecord x = new CategorizedRecord(new ProcessedRecord("1", "2", "3"), "cat");
        System.out.println(x.getHeader());
    }

}
